import { instance as request } from "@/utils/request";


//获取我的访客邀请码
const getmyguestcode = (data?: any) => {
    return request<any, any>({
        method: "POST",
        url: "/guest/getmyguestcode",
        data: data,
    });
};
//访客-验证邀请码

const verifycheckcode = (data?: any) => {
    return request<any, any>({
        method: "POST",
        url: "/guest/verifycheckcode",
        data: data,
    });
};


//添加访客记录
const addguestrecord = (data?: any) => {
    return request<any, any>({
        method: "POST",
        url: "/guest/addguestrecord",
        data: data,
    });
};
//获取我的访客列表

const getmyguestpagelist = (data?: any) => {
    return request<any, any>({
        method: "POST",
        url: "/guest/getmyguestpagelist",
        data: data,
    });
};
//审核我的访客申请

const approveguestform = (data?: any) => {
    return request<any, any>({
        method: "POST",
        url: "/guest/approveguestform",
        data: data,
    });
};

const watchedvideo = (data?: any) => {
    return request<any, any>({
        method: "POST",
        url: "/guest/watchedvideo",
        data: data,
    });
};



export {
    getmyguestcode, addguestrecord, getmyguestpagelist, approveguestform, verifycheckcode, watchedvideo
}